#include<iostream>
#include<vector>

using namespace std;

void solve(){
    int n;
    cin >> n;
    vector<int> w(n + 1);
    for(int i = 1; i<= n; i++)
        cin >> w[i];
    cout << w[1] << endl;
}

int main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    
    solve();
    
    return 0;
}
